STEP 14: Let's change the collision event so that different things happen depending on what the astronaut hits!
- Find the line: ····my_var·=·hit_sprite.get_image_name() Change the variable from my_var to image.
- Find the line: ····if·my_var·==·"codesters":¬ Test if image is equal to "astronaut1".
This collision event checks what the spaceship has hit! If the image label of the hit_sprite is "astronaut1", this if-block will run. We'll also write a different if-block that will run if the spaceship hits a "ufo" instead!
To navigate the page using the TAB key, first press ESC to exit the code editor.